home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 23 code / ProjectDrag 1.1b4 / Sources / ProjectDrag Sources / ProjectDrag.r < prev    next >
Encoding:
Text File  |  1995-07-11  |  12.1 KB  |  478 lines  |  [TEXT/MPS ]

  1. /* ProjectDrag.r: Resources used by each applet in ProjectDrag
  2.  * Mutated from DropShell.r.
  3.  *
  4.  * A set of applets for drag and drop source control by Tim Maroney.
  5.  * See develop, issue 23 for details.
  6.  *
  7.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  8.  * and using the MoreFiles utilities by Jim Luther.
  9.  *
  10.  * This software is free, but don't modify and redistribute it without
  11.  * changing the status window to indicate your name and your changes!
  12.  */
  13.  
  14.  
  15. #define SystemSevenOrLater 1
  16. #include "Types.r"
  17. #include "SysTypes.r"
  18. #include "BalloonTypes.r"
  19.  
  20. /* 
  21.     These are the help resources for the menus.
  22. */
  23. resource 'hmnu' (128, purgeable) {    /* Apple */
  24.     HelpMgrVersion, 0, 0, 0,
  25.     HMSkipItem {    /* no missing items */    },
  26.     {    /* array HMenuArray: 2 elements */
  27.         HMSkipItem        {    /* skip the menu title */ },
  28.         HMStringResItem {    /* About Item */
  29.             128, 1,
  30.             128, 1,
  31.             0, 0,
  32.             0, 0
  33.         }
  34.     }
  35. };
  36.  
  37. /* How about the About box? */
  38. resource 'ALRT' (128, purgeable) { {75, 79, 198, 354}, 128,
  39.     {    /* array: 4 elements */
  40.         /* [1] */    OK, visible, silent,
  41.         /* [2] */    OK, visible, silent,
  42.         /* [3] */    OK, visible, silent,
  43.         /* [4] */    OK, visible, silent
  44.     },
  45.     alertPositionMainScreen
  46. };
  47.  
  48. /* 
  49.     This is the help resource for the about box.
  50. */
  51. resource 'hdlg' (128, purgeable) {
  52.     HelpMgrVersion, 0, hmSaveBitsNoWindow, 0, 3,    /* need bits saved in Alert, since the OK ring & icons are not updated */
  53.     HMSkipItem    { /* no missing items */ },
  54.     {
  55.         HMStringResItem {    /* OK button */
  56.             {0,0},        /* default tip */
  57.             {0,0,0,0},    /* alternate rect */
  58.             128, 2,        /* res ID's as normal */
  59.             0, 0,
  60.             0, 0,
  61.             0, 0
  62.         },
  63.         HMStringResItem {    /* StatText */
  64.             {0,0},        /* default tip */
  65.             {0,0,0,0},    /* alternate rect */
  66.             0, 0,        
  67.             128, 3,        /* stat text is disabled! */
  68.             0, 0,
  69.             0, 0
  70.         }
  71.     }
  72. };
  73.  
  74. /* Error Alert Stuff */
  75. resource 'ALRT' (200, purgeable) { /* generic error alert */
  76.     {100, 120, 224, 452}, 200,
  77.     {    /* array: 4 elements */
  78.         /* [1] */    OK, visible, silent,
  79.         /* [2] */    OK, visible, silent,
  80.         /* [3] */    OK, visible, silent,
  81.         /* [4] */    OK, visible, silent
  82.     },
  83.     alertPositionMainScreen
  84. };
  85.  
  86. resource 'DITL' (200, purgeable) {
  87.     {    /* array DITLarray: 4 elements */
  88.         /* [1] */    {92, 246, 112, 318}, Button { enabled, "Whoops!" }, 
  89.         /* [2] */     {11, 73, 75, 318}, StaticText { disabled, "^0" }, 
  90.         /* [3] */     {11, 11, 43, 43}, Icon { disabled, 0 }, 
  91.         /* [4] */     {96, 11, 112, 100}, StaticText { disabled, "Error: ^1" } 
  92.     }
  93. };
  94.  
  95.  
  96. resource 'ALRT' (202, purgeable) { /* Confirm alert -- yes/no/cancel */
  97.     {100, 120, 224, 452}, 202,
  98.     {    /* array: 4 elements */
  99.         /* [1] */ OK, visible, silent,
  100.         /* [2] */ OK, visible, silent,
  101.         /* [3] */ OK, visible, silent,
  102.         /* [4] */ OK, visible, silent
  103.     },
  104.     alertPositionMainScreen
  105. };
  106.  
  107. resource 'DITL' (202, purgeable) {
  108.     {    /* array DITLarray: 5 elements */
  109.         /* [1] */    {91, 246, 111, 318}, Button { enabled, "Yes" },
  110.         /* [2] */    {91, 11, 111, 83}, Button { enabled, "Cancel" },
  111.         /* [3] */    {11, 73, 75, 318}, StaticText { disabled, "^0" },
  112.         /* [4] */    {11, 11, 43, 43}, Icon { disabled, 0 },
  113.         /* [5] */    {91, 155, 111, 227}, Button { enabled, "No" }
  114.     }
  115. };
  116.  
  117. resource 'DLOG' (203) { /* user settings dialog */
  118.     {40, 40, 212, 372}, dBoxProc, invisible, goAway, 0x0, 203, "",
  119.     alertPositionMainScreen
  120. };
  121.  
  122. resource 'DITL' (203, purgeable) {
  123.     {    /* array DITLarray: 8 elements */
  124.         /* [1] */    {143, 247, 163, 319}, Button { enabled, "OK" },
  125.         /* [2] */    {143, 156, 163, 228}, Button { enabled, "Cancel" },
  126.         /* [3] */    {11, 73, 64, 318},StaticText { disabled,
  127.                     "Please enter your user name, and your initials "
  128.                     "or a nickname for change comments." },
  129.         /* [4] */    {11, 9, 43, 41}, Icon { disabled, 0 },
  130.         /* [5] */    {85, 9, 101, 165}, StaticText { disabled, "User Name:" },
  131.         /* [6] */    {112, 9, 128, 165}, StaticText { disabled, "Initials or Nickname:" },
  132.         /* [7] */    {86, 176, 102, 316}, EditText { enabled, "Joe Schmoe" },
  133.         /* [8] */    {112, 176, 128, 316}, EditText { enabled, "js" }
  134.     }
  135. };
  136.  
  137. resource 'DLOG' (204) {    /* Change comment dialog */
  138.     {40, 40, 272, 372}, dBoxProc, invisible, goAway, 0x0, 204, "",
  139.     alertPositionMainScreen
  140. };
  141.  
  142.  
  143. resource 'DITL' (204, purgeable) {
  144.     {    /* array DITLarray: 5 elements */
  145.         /* [1] */    {203, 247, 223, 319}, Button { enabled, "OK" },
  146.         /* [2] */    {203, 156, 223, 228}, Button { enabled, "Cancel" },
  147.         /* [3] */    {11, 73, 64, 318}, StaticText { disabled, "^0" },
  148.         /* [4] */    {11, 9, 43, 41}, Icon { disabled, 0 },
  149.         /* [5] */    {75, 10, 191, 317}, EditText { enabled, "" }
  150.     }
  151. };
  152.  
  153.  
  154. resource 'ALRT' (206, purgeable) { /* Confirm alert -- yes/no */
  155.     {100, 120, 224, 452}, 206,
  156.     {    /* array: 4 elements */
  157.         /* [1] */ OK, visible, silent,
  158.         /* [2] */ OK, visible, silent,
  159.         /* [3] */ OK, visible, silent,
  160.         /* [4] */ OK, visible, silent
  161.     },
  162.     alertPositionMainScreen
  163. };
  164.  
  165. resource 'DITL' (206, purgeable) {
  166.     {    /* array DITLarray: 5 elements */
  167.         /* [1] */    {91, 246, 111, 318}, Button { enabled, "Yes" },
  168.         /* [2] */    {91, 158, 111, 230}, Button { enabled, "No" },
  169.         /* [3] */    {11, 73, 75, 318}, StaticText { disabled, "^0" },
  170.         /* [4] */    {11, 11, 43, 43}, Icon { disabled, 0 }
  171.     }
  172. };
  173.  
  174.  
  175. resource 'ALRT' (207, purgeable) { /* generic error alert */
  176.     {100, 120, 284, 452}, 207,
  177.     {    /* array: 4 elements */
  178.         /* [1] */    OK, visible, silent,
  179.         /* [2] */    OK, visible, silent,
  180.         /* [3] */    OK, visible, silent,
  181.         /* [4] */    OK, visible, silent
  182.     },
  183.     alertPositionMainScreen
  184. };
  185.  
  186. resource 'DITL' (207, purgeable) {
  187.     {    /* array DITLarray: 3 elements */
  188.         /* [1] */    {152, 246, 172, 318}, Button { enabled, "Heck!" }, 
  189.         /* [2] */     {11, 73, 135, 318}, StaticText { disabled, "^0" }, 
  190.         /* [3] */     {11, 11, 43, 43}, Icon { disabled, 0 },
  191.         /* [4] */     {156, 11, 172, 100}, StaticText { disabled, "^1" } 
  192.     }
  193. };
  194.  
  195.  
  196. /* the status dialog */
  197.  
  198. resource 'DLOG' (210) {
  199.     {40, 40, 136, 390},
  200.     noGrowDocProc, invisible, noGoAway, 0x0, 210, "",
  201.     centerMainScreen
  202. };
  203.  
  204. resource 'DITL' (210) {
  205.     {    /* array DITLarray: 3 elements */
  206.         /* [1] */
  207.         {8, 15, 44, 338},
  208.         StaticText {
  209.             disabled,
  210.             "Stop reading source code and go get some work done."
  211.         },
  212.         /* [2] */
  213.         {53, 14, 87, 70},
  214.         StaticText {
  215.             disabled,
  216.             "Status:"
  217.         },
  218.         /* [3] */
  219.         {53, 75, 87, 338},
  220.         StaticText {
  221.             disabled,
  222.             "idle…"
  223.         }
  224.     }
  225. };
  226.  
  227.  
  228. /* 
  229.     This is the help resource for the ErrorAlert above.  
  230. */
  231. resource 'hdlg' (200, purgeable) {
  232.     HelpMgrVersion, 0, hmSaveBitsNoWindow, 0, 3,    /* need bits saved in Alert, since the OK ring & icons are not updated */
  233.     HMSkipItem    { /* no missing items */ },
  234.     {
  235.         HMStringResItem {    /* OK button */
  236.             {0,0},        /* default tip */
  237.             {0,0,0,0},    /* alternate rect */
  238.             200, 1,        /* res ID's as normal */
  239.             0, 0,
  240.             0, 0,
  241.             0, 0
  242.         },
  243.         HMStringResItem {    /* StatText - error message*/
  244.             {0,0},        /* default tip */
  245.             {0,0,0,0},    /* alternate rect */
  246.             0, 0,        
  247.             200, 2,        /* stat text is disabled! */
  248.             0, 0,
  249.             0, 0
  250.         },
  251.         HMSkipItem        {    /* icon */ },
  252.         HMStringResItem {    /* StatText - error ID*/
  253.             {0,0},        /* default tip */
  254.             {0,0,0,0},    /* alternate rect */
  255.             0, 0,        
  256.             200, 3,        /* stat text is disabled! */
  257.             0, 0,
  258.             0, 0
  259.         },
  260.     }
  261. };
  262.  
  263.  
  264. resource 'DLOG' (205) { /* diagnostic dialog */
  265.     {40, 40, 290, 370},
  266.     dBoxProc, invisible, goAway, 0x0, 205, "", alertPositionMainScreen
  267. };
  268.  
  269.  
  270. resource 'DITL' (205, purgeable) { /* diagnostic dialog */
  271.     {    /* array DITLarray: 5 elements */
  272.         /* [1] */ {223, 247, 243, 319}, Button { enabled, "OK" },
  273.         /* [2] */ {11, 73, 64, 318}, StaticText { disabled, "Drivel." },
  274.         /* [3] */ {11, 9, 43, 41}, Icon { disabled, 0 },
  275.         /* [4] */ {75, 10, 211, 302}, UserItem { disabled },
  276.         /* [5] */ {75, 301, 211, 317}, Control { enabled, 205 }
  277.     }
  278. };
  279.  
  280.  
  281. resource 'CNTL' (205, purgeable) {
  282.     {75, 301, 211, 317}, 0, visible, 0, 0, 16, 0, ""
  283. };
  284.  
  285.  
  286. /* standard file dialog with a prompt */
  287.  
  288. resource 'DLOG' (212, purgeable) {
  289.     {0, 0, 210, 344},
  290.     dBoxProc,
  291.     invisible,
  292.     noGoAway,
  293.     0x0,
  294.     212,
  295.     "",
  296.     noAutoCenter
  297. };
  298.  
  299.  
  300. resource 'DITL' (212, purgeable) {
  301.     {    /* array DITLarray: 10 elements */
  302.         /* [1] */
  303.         {176, 252, 196, 332},
  304.         Button {
  305.             enabled,
  306.             "Open"
  307.         },
  308.         /* [2] */
  309.         {145, 252, 165, 332},
  310.         Button {
  311.             enabled,
  312.             "Cancel"
  313.         },
  314.         /* [3] */
  315.         {0, 0, 0, 0},
  316.         HelpItem {
  317.             disabled,
  318.             HMScanhdlg {
  319.                 -6042
  320.             }
  321.         },
  322.         /* [4] */
  323.         {49, 235, 65, 337},
  324.         UserItem {
  325.             enabled
  326.         },
  327.         /* [5] */
  328.         {73, 252, 93, 332},
  329.         Button {
  330.             enabled,
  331.             "Eject"
  332.         },
  333.         /* [6] */
  334.         {101, 252, 121, 332},
  335.         Button {
  336.             enabled,
  337.             "Desktop"
  338.         },
  339.         /* [7] */
  340.         {70, 12, 200, 230},
  341.         UserItem {
  342.             enabled
  343.         },
  344.         /* [8] */
  345.         {47, 12, 66, 230},
  346.         UserItem {
  347.             enabled
  348.         },
  349.         /* [9] */
  350.         {132, 251, 133, 333},
  351.         Picture {
  352.             disabled,
  353.             11
  354.         },
  355.         /* [10] */
  356.         {5, 12, 40, 336},
  357.         StaticText {
  358.             disabled,
  359.             "^0"
  360.         }
  361.     }
  362. };
  363.  
  364.  
  365. resource 'STR#' (100) {    /* error alert messages! */
  366.     {    /* array StringArray: 1 elements */
  367.         /* [1] */    "This application requires Apple events.  Please upgrade to System 7.0 or later to use.",
  368.         /* [2] */    "An error occured during Apple event processing."
  369.     }
  370. };
  371.  
  372. resource 'STR#' (101) {    /* useful strings */
  373.     {    /* array StringArray: 1 elements */
  374.         /* [1] */    "ProjectDrag Preferences",
  375.         /* [2] */    "User Settings",
  376.         /* [3] */    "what you changed in",
  377.         /* [4] */    "what you expect to do with",
  378.         /* [5] */    "Your name and initials could not be determined.",
  379.         /* [6] */    "Projector information could not be retrieved from “<1>”.",
  380.         /* [7] */    "The project “<1>” could not be found.",
  381.         /* [8] */    "An error occured during the Projector command.",
  382.         /* [9] */    "The Projector command succeeded with this result: ",
  383.         /* [10] */    "idle…",
  384.         /* [11] */    "mounting project “<1>”",
  385.         /* [12] */    "<1>: An applet from ProjectDrag.\nWritten by Tim Maroney.",
  386.         /* [13] */    "A change header could not be found in “<1>”. Do you want to add one?",
  387.         /* [14] */    "Sorry, an error occurred while <1>.\n\n<2>",
  388.         /* [15] */    "first checked in",
  389.         /* [16] */    "searching for SourceServer",
  390.         /* [17] */    "The change comment could not be added to “<1>”.",
  391.         /* [18] */    "Please enter a comment explaining <1> “<2>”.",
  392.         /* [19] */    "Do you really want to discard changes to “<1>”?",
  393.         /* [20] */    "“<1>” isn't checked out or modify-read-only, so it can't be checked in.",
  394.         /* [21] */    "“<1>” is already checked out or modify-read-only, so it can't be checked out.",
  395.         /* [22] */    "“<1>“ is already checked out or modify-read-only, so it can't be made modify-read-only.",
  396.         /* [23] */    "The preferences file could not be written, but we can work with the settings you entered.",
  397.         /* [24] */    "getting your user name and nickname",
  398.         /* [25] */    "adding the change comment to “<1>”",
  399.         /* [26] */    "looking for the project",
  400.         /* [27] */    "Please select a ProjectorDB file with which you wish to work.",
  401.         /* [28] */    "The Projector database could not be found. Please select one…",
  402.         /* [29] */    "The change comment could not be added to “<1>”. Do you want to cancel the modify-read-only mark?",
  403.         /* [30] */    "The change comment could not be added to “<1>”. Do you want to cancel the checkout?",
  404.         /* [31] */    "Folder Names",
  405.         /* [32] */    "“<1>” is nor part of the project. Do you want to add it?",
  406.     }
  407. };
  408.  
  409. data 'Comm' (1) {
  410.     "<comment start>"
  411.     "<line start>\tFile:\t\t<file name><line end>\n"
  412.     "<blank line>\n"
  413.     "<line start>\tContains:\t<contents><line end>\n"
  414.     "<blank line>\n"
  415.     "<line start>\tWritten by:\t<user name><line end>\n"
  416.     "<blank line>\n"
  417.     "<line start>\tCopyright:\t<copyright><line end>\n"
  418.     "<blank line>\n"
  419.     "<line start>\tChange History (most recent first):<line end>\n"
  420.     "<blank line>\n"
  421. };
  422.  
  423. data 'Comm' (2) {
  424.     "<line start>\t\t<<revision>>\t <date>\t<nickname>\t<comment><line end>\n"
  425. };
  426.  
  427. resource 'vers' (1) {
  428.     0x01,    /* major revision */
  429.     0x01,    /* minor revision */
  430.     beta,
  431.     0x04,    /* non-final release version */
  432.     verUS,    /* country code */
  433.     "1.1b4",    /* short vers string */
  434.     "ProjectDrag 1.1b4 by Tim Maroney"
  435. };
  436.  
  437. resource 'SIZE' (-1) {
  438.     reserved,
  439.     acceptSuspendResumeEvents,
  440.     reserved,
  441.     canBackground,
  442.     multiFinderAware,
  443.     backgroundAndForeground,
  444.     dontGetFrontClicks,
  445.     ignoreChildDiedEvents,
  446.     is32BitCompatible,
  447.     isHighLevelEventAware,
  448.     localAndRemoteHLEvents,
  449.     notStationeryAware,
  450.     dontUseTextEditServices,
  451.     reserved,
  452.     reserved,
  453.     reserved,
  454.     102400,
  455.     102400
  456. };
  457.  
  458. resource 'SIZE' (0) {
  459.     reserved,
  460.     acceptSuspendResumeEvents,
  461.     reserved,
  462.     canBackground,
  463.     multiFinderAware,
  464.     backgroundAndForeground,
  465.     dontGetFrontClicks,
  466.     ignoreChildDiedEvents,
  467.     is32BitCompatible,
  468.     isHighLevelEventAware,
  469.     localAndRemoteHLEvents,
  470.     notStationeryAware,
  471.     dontUseTextEditServices,
  472.     reserved,
  473.     reserved,
  474.     reserved,
  475.     102400,
  476.     102400
  477. };
  478.